Average word length |
---|
8.0684 |
word length | percentage |
---|---|
1 | 0.1199 |
2 | 0.6740 |
3 | 2.4166 |
4 | 5.6799 |
5 | 9.1569 |
6 | 12.5160 |
7 | 14.3341 |
8 | 14.7331 |
9 | 13.5442 |
10 | 9.8818 |
11 | 6.8829 |
12 | 4.4099 |
13 | 2.8160 |
14 | 1.8206 |
15 | 1.1168 |
16 | 0.6982 |
17 | 0.4730 |
18 | 0.3269 |
19 | 0.2489 |
20 | 0.1758 |
21 | 0.1013 |
22 | 0.0972 |
23 | 0.0579 |
24 | 0.0443 |
25 | 0.0373 |
26 | 0.0312 |
27 | 0.0242 |
28 | 0.0207 |
29 | 0.0111 |
30 | 0.0111 |
In this subsection we ignore the fact that words have different frequencies. So for the average word length, each word is considered equally. For a fixed word length, we count the number of different words having this length.
The plot of the word length against the number of words of this length usually has a clear maximum between 10 and 15. Moreover, with a logarithmic scale of the y-axis, we get a nearly linear part between length 15 and 40.
Average word length is one of the classic parameters for a language.
Counting without multiplicity makes average word length depending on the corpus size. A larger corpus contains more words, and the additional words are usually longer. Hence, average word length should increase with corpus size.
Average word length:
select avg(char_length(word)) from words where w_id>100;;
Data for large table:
SELECT @all:=count(*) from words where w_id>100;
select char_length(word), 100*count(*)/@all from words where w_id>100 group by char_length;
Do we have the linear part between 15 and 40 for (nearly) all languages?
Where does it come from?
Calculate and compare the slope!
3.5.1.2 Words by Length with multiplicity